home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Aventura / dexter.swf / scripts / DefineButton2_322 / BUTTONCONDACTION on(release).as next >
Encoding:
Text File  |  2003-10-24  |  713 b   |  40 lines

  1. on(release){
  2.    set("/:mode","0");
  3.    if(eval("/:dark") == "1" and eval("/:in") eq "dexter")
  4.    {
  5.       tellTarget("/screen")
  6.       {
  7.          gotoAndStop(6);
  8.       }
  9.    }
  10.    else if(eval("/:dark") == "2" and eval("/:in") eq "dedee")
  11.    {
  12.       tellTarget("/screen")
  13.       {
  14.          gotoAndStop(6);
  15.       }
  16.    }
  17.    else
  18.    {
  19.       tellTarget("/screen")
  20.       {
  21.          gotoAndStop(1);
  22.       }
  23.    }
  24.    i = "1";
  25.    while("4" >= i)
  26.    {
  27.       setProperty("../o" add i, _visible, "0");
  28.       tellTarget("../o" add i)
  29.       {
  30.          gotoAndPlay(1);
  31.       }
  32.       tellTarget("../b" add i)
  33.       {
  34.          gotoAndStop("reset");
  35.          play();
  36.       }
  37.       i += "1";
  38.    }
  39. }
  40.